<!DOCTYPE html>
<html>
<head>
    <title>each函数测试-each函数测试</title>
    <meta charset="utf-8"/>
    <script src="../../../js/jquery-1.10.1.min.js"></script>
    <script>
       $().ready(function(){
           $.each( ["aaa", "bbb", "ccc"], function(i, n){
               alert( "Item #" + i + ": " + n );
           });

           $.each( { name: "John", lang: "JS" }, function(i, n){
               alert( "Name: " + i + ", Value: " + n );
           });

       });
    </script>
</head>
<body>
    <p>each函数测试
        <input type="button" value="each函数测试"/>
    </p>
</body>
</html>